<%--
  $Id: userForm.jsp 7 2013-03-04 05:52:15Z gabakyan@gmail.com $
  $Author: gabakyan@gmail.com $
  $Revision: 7 $
  $Date: 2013-03-04 05:52:15 +0000 (Mon, 04 Mar 2013) $

  Copyright (c) 2013 Supply Chain Intelligence (SCI), Inc.
  http://www.scintelligence.com/, Email: info@scintelligence.com
  All rights reserved.

  This file is part of Logistics Map.

  Logistics Map is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, version 3 of the License.

  Logistics Map is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with Logistics Map.  If not, see <http://www.gnu.org/licenses/>.
--%>
            <div class="form-panel">
                <c:url var="editUrl" value="/admin/user/edit"/>
                <form:form id="userForm" action="${editUrl}" method="post" cssClass="form-horizontal" modelAttribute="userCommand">
                    <%--<form:hidden path="username" />--%>
                    <div class="control-group">
                        <label class="control-label" for="username"><fmt:message key="forms.admin.userForm.label.username"/></label>
                        <div class="controls">
                            <form:input path="username" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="password"><fmt:message key="forms.admin.userForm.label.password"/></label>
                        <div class="controls">
                            <form:password path="password" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="firstName"><fmt:message key="forms.admin.userForm.label.firstName"/></label>
                        <div class="controls">
                            <form:input path="firstName" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="lastName"><fmt:message key="forms.admin.userForm.label.lastName"/></label>
                        <div class="controls">
                            <form:input path="lastName" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="company"><fmt:message key="forms.admin.userForm.label.company"/></label>
                        <div class="controls">
                            <form:input path="company" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="purpose"><fmt:message key="forms.admin.userForm.label.purpose"/></label>
                        <div class="controls">
                            <form:input path="purpose" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="status"><fmt:message key="forms.admin.userForm.label.status"/></label>
                        <div class="controls">
                            <form:select path="status">
                                <%--<form:option value="" label="Select" />--%>
                                <c:forEach items="${userStatusSelectOptions}" var="selectOption">
                                    <fmt:message key="${selectOption.label}" var="label"/>
                                    <form:option value="${selectOption.value}" label="${label}" />
                                </c:forEach>
                            </form:select>
                        </div>
                    </div>
                    <div class="control-group">
                        <div class="controls">
                            <input class="btn" type="submit" value="<fmt:message key='common.button.save'/>"/>
                        </div>
                    </div>

                    <div id="userFormFeedbackPanel" class="feedback-panel">
                        <form:errors path="*" id="feedback-error" cssClass="error" element="div" />
                    </div>
                </form:form>
            </div>